<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Hoodoo::ActiveRecord::Base</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/github.css" type="text/css" media="screen" />
<script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>
    <div class="banner">
        <h1>
            <span class="type">Class</span>
            Hoodoo::ActiveRecord::Base
                <span class="parent">&lt;
                    ActiveRecord::Base
                </span>
        </h1>
        <ul class="files">
            <li><a href="../../../files/lib/hoodoo/active/active_record/base_rb.html">lib/hoodoo/active/active_record/base.rb</a></li>
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
    <div class="description">
      
<p>While individual <a href="../ActiveRecord.html">ActiveRecord</a> mixins can
be included as and when needed, if you want the set of mixins, just define
a model which subclasses from this <a
href="Base.html">Hoodoo::ActiveRecord::Base</a> class instead of <a
href="Base.html">ActiveRecord::Base</a>.</p>

<p>This will include:</p>
<ul><li>
<p><a href="Secure.html">Hoodoo::ActiveRecord::Secure</a></p>
</li><li>
<p><a href="Dated.html">Hoodoo::ActiveRecord::Dated</a></p>
</li><li>
<p><a href="ManuallyDated.html">Hoodoo::ActiveRecord::ManuallyDated</a></p>
</li><li>
<p><a href="Translated.html">Hoodoo::ActiveRecord::Translated</a></p>
</li><li>
<p><a href="Finder.html">Hoodoo::ActiveRecord::Finder</a></p>
</li><li>
<p><a href="UUID.html">Hoodoo::ActiveRecord::UUID</a></p>
</li><li>
<p><a href="Creator.html">Hoodoo::ActiveRecord::Creator</a></p>
</li><li>
<p><a href="Writer.html">Hoodoo::ActiveRecord::Writer</a></p>
</li><li>
<p><a href="ErrorMapping.html">Hoodoo::ActiveRecord::ErrorMapping</a></p>
</li></ul>

<p>…but not necessarily <em>activate</em> those modules. For example, the <a
href="Dated.html">Hoodoo::ActiveRecord::Dated</a> module must be activated
by a call to Hoodoo::ActiveRecord::Dated.dating_enabled.</p>

    </div>








    <!-- Method ref -->
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
        <dt>I</dt>
        <dd>
          <ul>
              <li>
                <a href="#method-c-inherited">inherited</a>
              </li>
          </ul>
        </dd>
    </dl>

    <!-- Includes -->
    <div class="sectiontitle">Included Modules</div>
    <ul>
        <li>
            <a href="Secure.html">
              Hoodoo::ActiveRecord::Secure
            </a>
        </li>
        <li>
            <a href="Dated.html">
              Hoodoo::ActiveRecord::Dated
            </a>
        </li>
        <li>
            <a href="ManuallyDated.html">
              Hoodoo::ActiveRecord::ManuallyDated
            </a>
        </li>
        <li>
            <a href="Translated.html">
              Hoodoo::ActiveRecord::Translated
            </a>
        </li>
        <li>
            <a href="Finder.html">
              Hoodoo::ActiveRecord::Finder
            </a>
        </li>
        <li>
            <a href="UUID.html">
              Hoodoo::ActiveRecord::UUID
            </a>
        </li>
        <li>
            <a href="Creator.html">
              Hoodoo::ActiveRecord::Creator
            </a>
        </li>
        <li>
            <a href="Writer.html">
              Hoodoo::ActiveRecord::Writer
            </a>
        </li>
        <li>
            <a href="ErrorMapping.html">
              Hoodoo::ActiveRecord::ErrorMapping
            </a>
        </li>
    </ul>









    <!-- Methods -->
      <div class="sectiontitle">Class Public methods</div>
        <div class="method">
          <div class="title method-title" id="method-c-inherited">
              <b>inherited</b>( model )
            <a href="../../../classes/Hoodoo/ActiveRecord/Base.html#method-c-inherited" name="method-c-inherited" class="permalink">Link</a>
          </div>

            <div class="description">
              <p>Instantiates all the <a href="../ActiveRecord.html">ActiveRecord</a> mixins
when this class is inherited.</p>
<dl class="rdoc-list note-list"><dt>model
<dd>
<p>The <a href="Base.html">ActiveRecord::Base</a> descendant that is including
this module.</p>
</dd></dl>
            </div>



            <div class="sourcecode">
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-c-inherited_source')" id="l_method-c-inherited_source">show</a>
              </p>
              <div id="method-c-inherited_source" class="dyn-source">
                <pre><span class="ruby-comment"># File lib/hoodoo/active/active_record/base.rb, line 67</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">self</span>.<span class="ruby-identifier">inherited</span>( <span class="ruby-identifier">model</span> )

  <span class="ruby-constant">Hoodoo</span><span class="ruby-operator">::</span><span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Secure</span>.<span class="ruby-identifier">instantiate</span>( <span class="ruby-identifier">model</span> )
  <span class="ruby-constant">Hoodoo</span><span class="ruby-operator">::</span><span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Dated</span>.<span class="ruby-identifier">instantiate</span>( <span class="ruby-identifier">model</span> )
  <span class="ruby-constant">Hoodoo</span><span class="ruby-operator">::</span><span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">ManuallyDated</span>.<span class="ruby-identifier">instantiate</span>( <span class="ruby-identifier">model</span> )
  <span class="ruby-constant">Hoodoo</span><span class="ruby-operator">::</span><span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Translated</span>.<span class="ruby-identifier">instantiate</span>( <span class="ruby-identifier">model</span> )
  <span class="ruby-constant">Hoodoo</span><span class="ruby-operator">::</span><span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Finder</span>.<span class="ruby-identifier">instantiate</span>( <span class="ruby-identifier">model</span> )

  <span class="ruby-constant">Hoodoo</span><span class="ruby-operator">::</span><span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">UUID</span>.<span class="ruby-identifier">instantiate</span>( <span class="ruby-identifier">model</span> )
  <span class="ruby-constant">Hoodoo</span><span class="ruby-operator">::</span><span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Creator</span>.<span class="ruby-identifier">instantiate</span>( <span class="ruby-identifier">model</span> )
  <span class="ruby-constant">Hoodoo</span><span class="ruby-operator">::</span><span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Writer</span>.<span class="ruby-identifier">instantiate</span>( <span class="ruby-identifier">model</span> )

  <span class="ruby-keyword">super</span>( <span class="ruby-identifier">model</span> )

<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
          </div>
</div>

    </div>
  </body>
</html>
